From: Matthias Clasen Date: Mon, 1 Jul 2013 20:52:26 +0000 (-0400) Subject: Make autorun notifications work X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3994 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=793edd3a2b2133cd4c36442b8e061cef0a601d39;p=gnome-shell.git Make autorun notifications work The code that checks for various conditions is confusing and undercommented. It appears one of the recent refactorings inadvertedly inverted the sense of the 'hidden mountpoint' check, and caused autorun to not work for anything that does not have a 'native root' - which is pretty much all volumes implemented by gvfs. https://bugzilla.gnome.org/show_bug.cgi?id=703418 --- diff --git a/js/ui/components/autorunManager.js b/js/ui/components/autorunManager.js index 88b08a2af..2667c02d3 100644 --- a/js/ui/components/autorunManager.js +++ b/js/ui/components/autorunManager.js @@ -31,7 +31,7 @@ function shouldAutorunMount(mount, forTransient) { if (!volume || (!volume.allowAutorun && forTransient)) return false; - if (!root.is_native() || isMountRootHidden(root)) + if (root.is_native() && isMountRootHidden(root)) return false; return true;